package com.all.learning.guava.other;

import com.google.common.base.Preconditions;

public class GGoptional {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String cc = "";
		Preconditions.checkNotNull(cc, "cc不能为NULL");
//		Preconditions.checkElementIndex(1, 4);
		int i = 10;
		Preconditions.checkArgument(i <= 100, "检查参数值");
		Preconditions.checkState(true, "检查对象状态");
		String[] str = {"luxjxj","jfjfjfffjj"};
		Preconditions.checkElementIndex(1, str.length, "检查数组索引");
		

	}

}
